package com.derbysoft.nuke.configkeeper.service;

import com.derbysoft.nuke.configkeeper.domain.ConfigHistory;

import java.util.List;
import java.util.Map;

public interface ConfigService {

    List<String> getSources();

    boolean available(String source);

    Long getCurrentTimestamp(String source);

    Map<String, String> getAll(String source);

    void setProperty(String source, String key, String value);

    void removeProperty(String source, String key);

    String getProperty(String source, String key);

    List<ConfigHistory> findHistory(String source, Long timestamp);
}
